package homework.day29;

import java.util.List;
import java.util.Vector;

public class Prob1 {

	public List<String> dataChange(String[] strData) {
		
		Vector<String> v2 = new Vector<String>();
		
		StringBuffer strChange =new StringBuffer();
		
		for (int i=strData.length-1; i>=0; i--) {
			strChange.append(strData[i]);
			strChange.reverse();
			v2.add(strChange.toString());
			strChange.delete(0, strChange.length());
		}		
		return v2;
	}
	public static void main(String[] args) {
		
		Prob1 st = new Prob1();
		String[] strData = {"Java Programming", "JDBC", "Oracle10g", "JSP/Servlet"};
		List<String> v1 = st.dataChange(strData);
		
		for(int i=0; i<v1.size(); i++) {
			System.out.println(((Vector<String>) v1).elementAt(i));
		}
	}
}
